package net.ikenway.springboot.demo.Service.Interface;

import net.ikenway.springboot.demo.Model.Dto.ProductSortDto;
import net.ikenway.springboot.demo.Model.Entity.ProductSort;

import java.util.List;

/**
 * @author MasterKenway <zk@ikenway.net>
 * @Description
 * @date Created Date 12/18/2020
 */
public interface ProductSortServiceIntf {
    public List<ProductSortDto> findAll() throws Exception;

    public List<ProductSortDto> findAllByEnable(boolean enable) throws Exception;

    public ProductSortDto create(ProductSortDto productSortDto) throws Exception;

    public void update(ProductSortDto productSortDto) throws Exception;

    public void delete(List<Long> sortIds) throws Exception;

    public ProductSort existOrNot(Long sortId);
}
